package router

import (
	"company_website/src/api"
	"github.com/gin-gonic/gin"
)

type Admin struct {
}

func (a *Admin) InitRouter(router *gin.RouterGroup) {
	adminUser := router.Group("adminUser")
	{
		// 分页获取成员列表
		adminUser.GET("adminList", api.AdminEnter.AdminList)
		// 搜索成员
		adminUser.GET("adminSearch", api.AdminEnter.AdminSearch)
		// 设置成员管理权限
		adminUser.PUT("adminAuthorization", api.AdminEnter.SetAdminAuthorization)
	}
}
